CKEDITOR.dialog.add("hiddenfield",(function(e){return{title:e.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,getModel:function(e){return(e=e.getSelection().getSelectedElement())&&e.data("cke-real-element-type")&&"hiddenfield"==e.data("cke-real-element-type")?e:null},onShow:function(){var e=this.getParentEditor(),t=this.getModel(e);t&&(this.setupContent(e.restoreRealElement(t)),e.getSelection().selectElement(t))},onOk:function(){var e=this.getValueOf("info","_cke_saved_name"),t=this.getParentEditor();(e=CKEDITOR.env.ie&&8>CKEDITOR.document.$.documentMode?t.document.createElement('<input name="'+CKEDITOR.tools.htmlEncode(e)+'">'):t.document.createElement("input")).setAttribute("type","hidden"),this.commitContent(e);e=t.createFakeElement(e,"cke_hidden","hiddenfield");var n=this.getModel(t);return n?(e.replace(n),t.getSelection().selectElement(e)):t.insertElement(e),!0},contents:[{id:"info",label:e.lang.forms.hidden.title,title:e.lang.forms.hidden.title,elements:[{id:"_cke_saved_name",type:"text",label:e.lang.forms.hidden.name,default:"",accessKey:"N",setup:function(e){this.setValue(e.data("cke-saved-name")||e.getAttribute("name")||"")},commit:function(e){this.getValue()?e.setAttribute("name",this.getValue()):e.removeAttribute("name")}},{id:"value",type:"text",label:e.lang.forms.hidden.value,default:"",accessKey:"V",setup:function(e){this.setValue(e.getAttribute("value")||"")},commit:function(e){this.getValue()?e.setAttribute("value",this.getValue()):e.removeAttribute("value")}}]}]}}));